package org.jks.service;

import java.util.ArrayList;
import java.util.List;

import org.jks.model.DeviceStatus;
import org.springframework.stereotype.Service;

@Service
public class DeviceStatusService extends EntityService<DeviceStatus>{
	
	public DeviceStatusService(){
		MODEL_NAME = DeviceStatus.class.getSimpleName();
		CLASS_NAME = DeviceStatus.class;
	}
	
	public DeviceStatus findByName(String name){
		List<Object> param = new ArrayList<Object>();
		param.add(name);
		return get("from DeviceStatus where Name=?", param);
	}
}
